package com.zhang.designmode.wangzheng_design_mode.T49;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 * @Author: zxz
 * @DateTime: 2022/3/1 17:21
 * @Description:  JDBC就是典型的桥接模式
 */
public class Demo {
    public static void main(String[] args) {
    }


    private static Connection getConn(){
        try {
            //com.mysql.cj.jdbc.Driver
            Class.forName("com.mysql.cj.jdbc.Driver");
            String url="";
            String userName="";
            String password="";
            Connection conn = DriverManager.getConnection(url, userName, password);
            return conn;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
